//导入vue-router
import {createRouter,createMemoryHistory} from 'vue-router'
//创建路由
const routes = [
    {
        path:'/',
        component:()=>import('../views/Home.vue')
    },
    {
        path:'/about',
        component:()=>import('../views/About.vue')
    },
    {
        path:'/detail/:id',
        component:()=>import('../views/Detail.vue')
    }
]